#ifndef __WF_REST_SER_H__
#define __WF_REST_SER_H__
#include "WebPageQuery.h"
#include "KeyRecommander.h"
#include <workflow/WFFacilities.h>
#include <wfrest/HttpServer.h>

class WfRestSer
{

public:
    WfRestSer(WebPageQuery *query, KeyRecommander *key);

    bool start(int port);

    void stop();

void handlePostRecommand(const wfrest::HttpReq *req, wfrest::HttpResp *resp);

    private :

    void initHttpServer();

private:
    wfrest::HttpServer _httpserver;
    KeyRecommander *_keyrecon;
    WebPageQuery *_wordquery;
};

#endif
